<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="top.jsp" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE HTML>
<html lang="en-US">
<head>
	<meta charset="UTF-8">
	<title>凯盛项目管理系统</title>
	<link rel="stylesheet" type="text/css" href="static/css/bootstrap.min.css"/>
	<style type="text/css">
		.body{
			padding-top:60px;
		
		}
	
	</style>
</head>
<body class="body">
	
		<div class="container">
	  <div class="row">
	  
		 <!-- 导入左侧部分 -->
		<jsp:include page="side.jsp">
			<jsp:param value="task" name="tag"/>
		</jsp:include>
		
		<div class="span9">
			 <c:if test="${fn:length(taskList) ==0}">
					该目标没有任何任务！
				</c:if>
				<div class="page-header">
					<a href="task.jspx?m=new&id=${goalid }" class="btn btn-success"><i class="icon-plus icon-white"></i>添加新任务</a>
				</div>
			<dl>	
				<c:forEach items="${taskList }" var="task">
						<ul class="breadcrumb" style="margin-bottom:0px;border-radius: 3px 3px 0 0;margin-top:15px">
							<li class="active">
								<a href="edit_task.jspx"><i class="icon-th"></i>${task.name }</a>
							</li>
							<li style="float:right">
								<i class="icon-edit"></i><a href="edit_goal.jspx" class="link-black">编辑</a>
								<i class="icon-delete"></i><a href="task.jspx?m=delete&taskid=${task.id}" class="link-black">删除</a>
							</li>
						</ul>
						<div class="well" style="margin-bottom:20px;background-color:#FFF;border: 1px solid #DDDDDD;" >
													<p>${task.desc}</p>
								<div class="progress ">
									<div class="bar" style="width: ${task.rate}%;">当前目标总进度完成60%</div>
								</div>
						</div>
						</c:forEach>
			</dl>
	
	  </div>
	</div>
</body>
</html>